Carbon


DrawThemeMenuBarBackground

Header: Appearance.h Carbon status: Supported

Draws a menu bar background.

OSStatus DrawThemeMenuBarBackground (
    const Rect *inBounds, 
    ThemeMenuBarState inState, 
    UInt32 inAttributes
);
inBounds

A pointer to a structure of type Rect. Before calling DrawThemeMenuBarBackground, set the rectangle to specify the menu bar’s initial size and location, in global coordinates.

inState

A value of type ThemeMenuBarState. Pass a constant specifying the state (active or selected) in which to draw the menu bar; see “Theme Menu Bar State Constants”.

inAttributes

Reserved. Pass 0.

function result

A result code.

DISCUSSION

The DrawThemeMenuBarBackground function draws a theme-compliant menu bar background in the specified rectangle.

VERSION NOTES

This function is available with Appearance Manager 1.0.1 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)